#include "cmessage.h"

CMessage::CMessage(const CMessage &other)
{
    d = other.d;
}

CMessage::CMessage(const QString &networkId, QObject *parent) :
    QObject(parent)
{
    d.networkId = networkId;
}

QString CMessage::networkId() const
{
    return d.networkId;
}

void CMessage::setNetworkId(const QString &networkId)
{
    d.networkId = networkId;
}

QString CMessage::from() const
{
    return d.from;
}

void CMessage::setFrom(const QString &from)
{
    d.from = from;
}

QString CMessage::to() const
{
    return d.to;
}

void CMessage::setTo(const QString &to)
{
    d.to = to;
}

QDateTime CMessage::time() const
{
    return d.time;
}

void CMessage::setTime(const QDateTime &time)
{
    d.time = time;
}


QString CMessage::text() const
{
    return d.text;
}

void CMessage::setText(const QString &text)
{
    d.text = text;
}
